package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;

/**
 * @author evan0213
 * @description
 */
@Data
@Entity
@Table(name = "CONTENT_BASE_FEE")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ContentBaseFee {
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CONTENT_BASE_FEE_SEQ")
	@SequenceGenerator(name = "CONTENT_BASE_FEE_SEQ", allocationSize = 1, sequenceName = "CONTENT_BASE_FEE_SEQ")
	private Long id;
	@Column(name = "TYPE")
	private Integer type;//1:产品包，2:节目
	@Column(name = "POMS_ID")
	private Long pomsId;//type=1:产品包id，type=2：节目id
	@Column(name = "PRODUCT_ID")
	private String productId; // 促销产品Id
	@Column(name = "PRICE")
	private String price;   //价格
	@Column(name = "ORDER_FLAG")
	private String orderFlag;// 0：包月  1：按次    7：免费
	@Column(name = "CHANNEL_PACKAGE_ID")
	private Long channelPackageId; //渠道包ID
	@Transient
	private String channelPackageName; //渠道包名称
	@Column(name = "EQUITY_ID")
	private String equityId;//权益节点id 对应权益节点的id
}
